﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Globals.cs" company="Collaboris Ltd.">
//   Copyright (c) Collaboris Ltd. All rights Reserved.
// </copyright>
// <summary>
//   Defines the Globals type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace Collaboris.Saf
{
    using System.IO;

    using Microsoft.SharePoint.Utilities;
    using System;

    using Utilities;

    /// <summary>
    /// Contains Global constants used by the Engine
    /// </summary>
    public static class Globals
    {
        public static string CollaborisConfigPath
        {
            get
            {
                string configPath = SafEnvironment.SafConfigFolder;
                return configPath;
            }
        }

        public static string PlaceHolderPlaceholderPrefix = "${";
        public static string PlaceHolderPlaceholderSuffix = "}";


        public static string ExpressionPlaceholderPrefix = "$[";
        public static string ExpressionPlaceholderSuffix = "]";

        public static string ManifestName = "Manifest";

        public static string DynamicPropertyPrefix = "#{";

        public static string DynamicPropertySuffix = "}";

        /// <summary>
        /// Aliases.xml is the Manifest xml for the actions.
        /// </summary>        
        public static readonly string ManifestFilePath = SafEnvironment.SafManifestFilePath;
        
        public static readonly string AliasesFilePath = SafEnvironment.SafAliasesFilePath;

        public static string AliasDirectorySearchPattern = "aliases.*.xml";
        public static string ManifestDirectorySearchPattern = "manifest.*.xml";

        private static string _exppressionPlaceholderPrefix;
    }
}